package com.bitoon.basketdudes.ws;

import org.apache.log4j.*;

public class btnLogger {
    
    private static btnLogger logger = null;
    private Logger log = null;
    
    protected btnLogger() {
        try {
            if (log == null) {
                log = Logger.getLogger(this.getClass());
            }
        } catch (Exception e) {
        }
    }

    public static btnLogger getLogger() {
        if (logger == null) {
            logger = new btnLogger();
        }
        return logger;
    }

    public void debug(Object o) {
        log.debug(o);
    }

    public void error(Object o) {
        log.error(o);
    }

    public void pintarStackTrace(StackTraceElement[] se) {

        for(int x=0; x<se.length; x++) {
            log.debug(se[x].toString());
        }

    }


}
